@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="row main">
            <div class="col-md-2">
                <div class="panel panel-default">
                    <div class="panel-heading">会员中心</div>
                    <ul class="list-group">
                        <li class="list-group-item"><a href="/venue/create">创建场馆</a> </li>
                        <li class="list-group-item"><a href="/venue/my_venues">我的场馆</a> </li>
                        <li class="list-group-item"><a href="/venue/my_follows">我的收藏</a> </li>
                        <li class="list-group-item"><a href="/user/set_icon">设置头像</a> </li>
                        <li class="list-group-item"><a href="/logout">退出登录</a> </li>
                    </ul>
                </div>

            </div>
            <div class="col-md-10">
                <div class="panel panel-default">
                    <div class="panel-heading">我的场馆</div>
                    <div class="panel-body">
                        <table class="table">
                            <tr>
                                <th>ID</th>
                                <th>场馆类型</th>
                                <th>场馆名称</th>
                                <th>创建时间</th>
                                <th>操作</th>
                            </tr>
                            @foreach($venues as $venue)
                                <tr>
                                    <td>{{$venue->id}}</td>
                                    <td>{{$venue->type->name}}</td>
                                    <td>{{$venue->name}}</td>
                                    <td>{{$venue->created_at}}</td>
                                    <td>
                                        <a href="/venue/detail/{{$venue->id}}">查看</a>
                                    </td>
                                </tr>
                            @endforeach
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
